#ifndef _USHARE_FUNC_H_
#define _USHARE_FUNC_H_

/**
 * @file ushare_func.h
 * external api header.
 */

#ifdef __cplusplus
extern "C" {
#if 0 /* avoid EMACS indent */
}
#endif /* 0 */
#endif /* __cplusplus */

typedef enum _ushare_error_t
{
	ue_success, 
	ue_already_start, 
	ue_failure, 
	ue_no_content, 
	ue_no_iface, 
	ue_udn_fail, 
	ue_fail_get_iface, 
	ue_fail_daemon, 
	ue_fail_telnet, 
	ue_fail_upnp
} ushare_error_t;

ushare_error_t create_ushare (const char * iface_name/*, const char * server_name, const char * content_dir*/);
void destroy_ushare ();

#ifdef __cplusplus
#if 0 /* avoid EMACS indent */
{
#endif /* 0 */
}
#endif /* __cplusplus */

#endif /* _USHARE_H_ */
